package editor
{
	import UIFree.uif_Timer;
	import UIFree.uif_component;
	import Classes.pi_images;
	
	import flash.display.Shape;
	import flash.events.TimerEvent;

	public class pi_resize extends pi_acontrol {
		public function pi_resize(parent:uif_component, ax:int=0, ay:int=0) {
			super(parent, pi_images.c_resize, ax, ay);
			
			image.rotation = 45;
			var cur_index: Number = 0;
			new uif_Timer(20, function(e: TimerEvent): void {
				if (_focus) {
					cur_index += 0.2;
					image.scaleX = 1 + Math.sin(cur_index) * now / 5;
				}
			});
		}
		
	}
}